package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 付款单表
 * </p>
 *
 * @author LX
 * @since 2018-09-28
 */
@TableName("erp_payment")
public class ErpPayment extends Model<ErpPayment> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 收款日期
     */
    private String dt;
    /**
     * 收款单号
     */
    @TableField("form_id")
    private String formId;
    /**
     * 客户名称
     */
    @TableField("customer_name")
    private String customerName;
    /**
     * 分支机构
     */
    private String branch;
    /**
     * 凭证号
     */
    @TableField("voucher_no")
    private String voucherNo;
    /**
     * 收款类型
     */
    @TableField("re_type")
    private String reType;
    /**
     * 收款方式
     */
    @TableField("re_method")
    private String reMethod;
    /**
     * 票号
     */
    @TableField("invoice_id")
    private String invoiceId;
    /**
     * 结余账款
     */
    @TableField("balance_money")
    private Double balanceMoney;
    /**
     * 用结余账款
     */
    @TableField("use_balance_money")
    private Double useBalanceMoney;
    /**
     * 实收金额
     */
    @TableField("actual_fee")
    private Double actualFee;
    /**
     * 总金额
     */
    @TableField("all_fee")
    private Double allFee;
    /**
     * 收款帐号
     */
    @TableField("re_account")
    private String reAccount;
    /**
     * 备注
     */
    @TableField("remark")
    private String remark;
    /**
     * 经办人
     */
    @TableField("attn")
    private String attn;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDt() {
        return dt;
    }

    public void setDt(String dt) {
        this.dt = dt;
    }

    public String getFormId() {
        return formId;
    }

    public void setFormId(String formId) {
        this.formId = formId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getBranch() {
        return branch;
    }

    public void setBranch(String branch) {
        this.branch = branch;
    }

    public String getVoucherNo() {
        return voucherNo;
    }

    public void setVoucherNo(String voucherNo) {
        this.voucherNo = voucherNo;
    }

    public String getReType() {
        return reType;
    }

    public void setReType(String reType) {
        this.reType = reType;
    }

    public String getReMethod() {
        return reMethod;
    }

    public void setReMethod(String reMethod) {
        this.reMethod = reMethod;
    }

    public String getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(String invoiceId) {
        this.invoiceId = invoiceId;
    }

    public Double getBalanceMoney() {
        return balanceMoney;
    }

    public void setBalanceMoney(Double balanceMoney) {
        this.balanceMoney = balanceMoney;
    }

    public Double getUseBalanceMoney() {
        return useBalanceMoney;
    }

    public void setUseBalanceMoney(Double useBalanceMoney) {
        this.useBalanceMoney = useBalanceMoney;
    }

    public Double getActualFee() {
        return actualFee;
    }

    public void setActualFee(Double actualFee) {
        this.actualFee = actualFee;
    }

    public Double getAllFee() {
        return allFee;
    }

    public void setAllFee(Double allFee) {
        this.allFee = allFee;
    }

    public String getReAccount() {
        return reAccount;
    }

    public void setReAccount(String reAccount) {
        this.reAccount = reAccount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAttn() {
        return attn;
    }

    public void setAttn(String attn) {
        this.attn = attn;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpPayment{" +
        ", id=" + id +
        ", dt=" + dt +
        ", formId=" + formId +
        ", customerName=" + customerName +
        ", branch=" + branch +
        ", voucherNo=" + voucherNo +
        ", reType=" + reType +
        ", reMethod=" + reMethod +
        ", invoiceId=" + invoiceId +
        ", balanceMoney=" + balanceMoney +
        ", useBalanceMoney=" + useBalanceMoney +
        ", actualFee=" + actualFee +
        ", allFee=" + allFee +
        ", reAccount=" + reAccount +
        ", remark=" + remark +
        ", attn=" + attn +
        "}";
    }
}
